 <?php
  /*
 //第一种连接pdo的方式
include './DB.php';
$config=[
    'host'=>'127.0.0.1',
    'username'=>'root',
    'password'=>'root',
    'dbname'=>'student',
    'charset'=>'utf8'
];
  $db=new DB($config);
?>
*/

//第一种连接pdo的方式
include "functions.php";
include './DB.php';
define('DEBUG',1);
$config=[
    'host'=>'127.0.0.1',
    'username'=>'root',
    'password'=>'root',
    'dbname'=>'student',
    'charset'=>'utf8'
];
$db=new DB($config);
?>